package com.mtsmda.chapter3.overridingEx;

public class OverRidingEx {
	
	/*private void go(double d){
		System.out.println("double _ " + d);
	}*/
	
	/*private void go(float d){
		System.out.println("float _ " + d);
	}*/
	
//	private void go(long d){
//		System.out.println("long _ " + d);
//	}
	
	/*private void go(int d){
		System.out.println("int _ " + d);
	}*/
	
	private void go(short d){
		System.out.println("short _ " + d);
	}
	
	private void go(byte d){
		System.out.println("byte _ " + d);
	}
	
	private void go(Integer d){
		System.out.println("Integer _ " + d);
	}
	
	public static void main(String[] args) {
		Byte b = new Byte("15");
		Short s = new Short("18");
		Integer i = new Integer(19);
		Long l = new Long(20);
		Float f = new Float(15.5);
		Double d = new Double(15.9);
		
		int ic = 9;
		OverRidingEx ex = new OverRidingEx();
		ex.go(b);
		ex.go(s);
		ex.go(i);
		/*ex.go(l);
		ex.go(f);
		ex.go(d);*/
		ex.go(ic);
		
		/*Object [] ob = new Object[]{b, s, i, l, f, d};
		for(Object object : ob){
			new OverRidingEx().go(object);
		}*/
		
	}
	
	
}